dojo.require("dijit.layout.ContentPane");
dojo.require("dijit.layout.BorderContainer");
dojo.require("dijit.form.Button");
dojo.require("dijit.form.ValidationTextBox");
function showCredito() {
	dojo.style("formCredito", "visibility", "visible");
	dojo.style("formDebito", "visibility", "hidden");
}

function showDebito() {
	dojo.style("formCredito", "visibility", "hidden");
	dojo.style("formDebito", "visibility", "visible");
}

function getCEP(cep){

	dojo.xhrGet({
	    url:"Servlet?logica=GetCEP&cep=" + cep,
	    handleAs:"json",
	    load: function(data){
	           dojo.byId('logradouro').set('value', data['logradouro']);
	        
	    }
	});
}